﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Oms.Model.Repositories
{
    public interface ICUDRepository<E>
    {
        void Create(E entity);
        void Update(E entity);
        void Delete(E entity);

    }
    public interface IReadRepository<E>
    {
        IQueryable<E> GetAll();
        IQueryable<E> GetByFilter(Expression<Func<E, bool>> filter);
        E GetById(long id);
    }
    public interface IRepository<E> : ICUDRepository<E>, IReadRepository<E>
    {
    }

}
